#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;

void printVector(vector<int>& vec)
{
	for (vector<int>::iterator it = vec.begin(); it != vec.end(); ++it)
	{
		cout << *it << " ";
	}
	cout << endl;
}

int main()
{
	vector<int> vec1, vec2;
	for (int i = 0; i < 5; i++)
	{
		vec1.push_back(i);
	}
	vec2 = vec1;
	printVector(vec2);
	return 0;
}